package com.oursnail.service;

import com.oursnail.domain.Catalog;
import com.oursnail.domain.User;

import java.util.List;

/**
 * @Author 【swg】.
 * @Date 2017/12/15 15:01
 * @DESC
 * @CONTACT 317758022@qq.com
 */
public interface CatalogService {
    /**
     * 保存Catalog
     * @param catalog
     * @return
     */
    Catalog saveCatalog(Catalog catalog);

    /**
     * 删除Catalog
     * @param id
     * @return
     */
    void removeCatalog(Long id);

    /**
     * 根据id获取Catalog
     * @param id
     * @return
     */
    Catalog getCatalogById(Long id);

    /**
     * 获取Catalog列表
     * @return
     */
    List<Catalog> listCatalogs(User user);
}
